/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.com.sml.SEFM.BUS;

import java.util.Iterator;
import java.util.List;
import javax.persistence.RollbackException;
import javax.transaction.HeuristicMixedException;
import javax.transaction.HeuristicRollbackException;
import javax.transaction.SystemException;
import vn.com.sml.SEFM.DAO.BankDAO;
import vn.com.sml.SEFM.domain.Banks;
import vn.com.sml.SEFM.domain.Countries;
/**
 *
 * @author Tunp
 */
public class BankBUS {
    public static List<Banks> listBanks() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException{
        return BankDAO.listBanks();
    }

    public Banks getBanksById(int id) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException {
        return BankDAO.getBanksById(id);
    }
    
    public static Countries getBanksCountriesById(int id) {
        return BankDAO.getBanksCountriesById(id);
    }

    public List<Banks> listBanks(String search_col,String search_text) {
        return BankDAO.listBanks(search_col,search_text);
    }
}
